import { range } from 'rxjs'
import { take, takeWhile } from 'rxjs/operators'

// range(1, 10).pipe(take(5)).subscribe(console.log)

range(1, 10).pipe(takeWhile(n => n < 5)).subscribe(console.log)
